import service from '/@/utils/request';

export const useAttendDailyCountApi = (data: object) => {
    return service({
        url: `v0/attend/daily/count`,
        method: 'GET',
        params: data,
    });
}
export const useAttendDailyPageApi = (formData?: object) => {
    return service({
        url: `v0/attend/daily/page`,
        method: 'POST',
        data: formData
    });
}

export const useAttendDailyExportApi = (formData?: object) => {
    return service({
        url: `v0/attend/daily/export`,
        method: 'POST',
        data: formData
    });
}

export const useAttendDailyCountEmployeeApi = (formData?: object) => {
    return service({
        url: `v0/attend/daily/countEmployee`,
        method: 'POST',
        data: formData
    });
}

export const useAttendExportDailyCountEmployeeApi = (formData?: object) => {
    return service({
        url: `v0/attend/daily/exportCountEmployee`,
        method: 'POST',
        data: formData
    });
}

export const useAttendDailyCountOrgApi = (formData?: object) => {
    return service({
        url: `v0/attend/daily/countOrg`,
        method: 'POST',
        data: formData
    });
}

export const useAttendExportDailyCountOrgApi = (formData?: object) => {
    return service({
        url: `v0/attend/daily/exportCountOrg`,
        method: 'POST',
        data: formData
    });
}

export const useAttendDailyCountRoleApi = (formData?: object) => {
    return service({
        url: `v0/attend/daily/countRole`,
        method: 'POST',
        data: formData
    });
}

export const useAttendExportDailyCountRoleApi = (formData?: object) => {
    return service({
        url: `v0/attend/daily/exportCountRole`,
        method: 'POST',
        data: formData
    });
}
